include(GoogleTest)

add_executable(sec_storage_test src/service_sec_storage_test.cpp)

target_include_directories(sec_storage_test PRIVATE inc)
target_include_directories(sec_storage_test PRIVATE ${SE_BASE_SERVICES_DEFAULT_INC})
target_compile_options(sec_storage_test PRIVATE ${SE_BASE_SERVICES_DEFAULT_CC})

target_link_libraries(sec_storage_test PRIVATE se_modules_common_ipc_stub_obj)
target_link_libraries(sec_storage_test PRIVATE se_modules_sec_storage_ipc_stub_obj)
target_link_libraries(sec_storage_test PRIVATE se_apdu_core_obj)
target_link_libraries(sec_storage_test PRIVATE logger_obj)
target_link_libraries(sec_storage_test PRIVATE parcel_obj)
target_link_libraries(sec_storage_test PRIVATE se_base_test_mocks_obj)
target_link_libraries(sec_storage_test PRIVATE tee_dyn_test_mocks)
target_link_libraries(sec_storage_test PRIVATE se_base_services_defines)
target_link_libraries(sec_storage_test PRIVATE test_helpers_obj)

target_link_libraries(sec_storage_test PRIVATE se_base_services_fwk_obj)
target_link_libraries(sec_storage_test PRIVATE dyn_services_sec_storage_obj)
target_link_libraries(sec_storage_test PRIVATE dyn_services_main_obj)
target_link_libraries(sec_storage_test PRIVATE GTest::gmock_main)
target_link_libraries(sec_storage_test PRIVATE securec)

gtest_discover_tests(sec_storage_test)
